package com.lkx;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ImageButton smsButton = (ImageButton) findViewById(R.id.smsButton);
        smsButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				handleSmsAction();
			}
		});
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
    
    private void handleSmsAction() {
    	startActivity(new Intent(Constants.SMS_LIST));
    }
}
